package com.share.design.command.demo01;

/**
 * @author caifan
 * @since 2022/11/7
 */
public class OpenCommand implements Command {

    private final Editor editor;

    public OpenCommand(Editor editor) {
        this.editor = editor;
    }

    @Override
    public void execute() {
        editor.open();
    }
}
